HELP I am totally baffled by this one. I have a script which refreshes attributes for objects according to the setting of module level attributes. |
Re: Some object not seeing module level attributes
I'm not sure if this is the cause of you problem, but are you aware that the value of "exists attribute <attr name>" depends on the current module?
AttrDef testAd = null
testAd = find(m, "my_attr")
if(!null testAd) {
print "found"
}
|
Re: Some object not seeing module level attributes MichaelGeorg - Fri Jul 13 07:05:09 EDT 2012
I'm not sure if this is the cause of you problem, but are you aware that the value of "exists attribute <attr name>" depends on the current module?
AttrDef testAd = null
testAd = find(m, "my_attr")
if(!null testAd) {
print "found"
}
I have tinkered a bit more: If I copy an object in question the script fails on the copy object. If I create a new object and copy all attributes values and set the links as per the original object the script works. In conclusion it would appear that I have some sort of corruption in some objects within the module which copy object seems to perpetuate! Guess I will have to re-create all the object in question. Is there a way of checking module/objects for corruptions? Thanks in advance Darren |